class Task < ActiveRecord::Base
	belongs_to :project
	has_many :workreports
	
	def associated_and_open_projects(user)
		user.projects.find_all_by_closed(false)
	end
	
end
